package lims.cloud.oss.fileInfo;

import lims.cloud.system.base.mybatis.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/fileInfo")
public class FileInfoController {

    private final FileInfoService fileInfoService;

    @GetMapping("/{keyword}")
    public Result<FileInfo> getFileInfoByKeyword(@PathVariable(name = "keyword") String keyword) {
        return fileInfoService.getFileInfoByKeyword(keyword);
    }

}
